package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IHouseDetailDao;
import gewu.suleju.model.pojo.HouseInfor;
import gewu.suleju.sevice.IHouseDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouseDetailServiceImp implements IHouseDetailService {
    @Autowired
    IHouseDetailDao iHouseDetailDao;
    @Override
    public HouseInfor findHouseDetailById(int id) {
        return iHouseDetailDao.findHouseInforById(id);
    }

    @Override
    public List<HouseInfor> findALLhouse(Integer id) {
        return iHouseDetailDao.findALLhouse(id);
    }

    @Override
    public int findBrokerId(int id) {


        return iHouseDetailDao.findBrokerId(id).getBrokerInfoId();
    }
}
